	 <?php 
	 if((get_theme_option('general','enable_demo_link')=='true' && get_theme_option('general','enable_using_skin_file')=='true' && !isset($_SESSION["skin"])) ||(get_theme_option('general','enable_demo_link')=='true' && get_theme_option('general','enable_using_skin_file')<>'true') || (get_theme_option('general','enable_demo_link')=='true' && isset($_SESSION['skin']) && $_SESSION['skin']=='yellow') || (get_theme_option('general','enable_using_skin_file') == 'true' && get_theme_option('general','skin_selected') == 'yellow' && get_theme_option('general','enable_demo_link')<>'true') || (get_theme_option('general','enable_using_skin_file') <> 'true' && get_theme_option('general','enable_demo_link')<>'true' && get_theme_option('style','style_skin_selected')=='yellow')):
	 ?>
	 <script>
      jQuery(function(){
            jQuery('.pix_diapo').diapo({ loaderColor:'#FF9600' });
      });	
      </script>
	  <?php
	  else:
	  ?>
	 <script>
      jQuery(function(){
            jQuery('.pix_diapo').diapo();
      });	
      </script>	  
	  <?php
	  endif;
	  ?>
	  <?php
	  $args = array( 
           'post_type' => 'slidershow',
           'posts_per_page' => $slider_num_of_item_display
      );
      global $wp_query;
      $query_args = array_merge( $wp_query->query, $args );
	  query_posts($query_args);
	  ?>
        	<div id="slider">
            	<div class="pix_diapo">		
	  <?php
	  while(have_posts()): the_post();
	  ?>					
                    <div>
					<?php
							$enable_title=get_meta_option('enable_slidershow_title',get_the_ID());
							$enable_desc=get_meta_option('enable_slidershow_desc',get_the_ID());
							$enable_image=get_meta_option('enable_slidershow_image',get_the_ID());
							$enable_slidershow_video=get_meta_option('enable_slidershow_video',get_the_ID());
							$embed_code=get_meta_option('slidershow_videoesc_html__mbed_code',get_the_ID());
							$enable_link=get_meta_option('slidershowesc_html__xternal_link',get_the_ID());
							if($enable_image =='true')
							{
							$image=get_meta_option('upload_slidershow_image',get_the_ID());
					?>
					
                        <img src="<?php echo $image; ?>" />
						
                        <div class="caption elemHover fromLeft">
                            <div class="caption-txt">
                            	<?php if($enable_title) : ?>
								
								<h2><?php the_title(); ?></h2>
								<?php endif; ?>
								<?php if($enable_desc) : ?>
								
                                <p><?php echo get_meta_option('slidershow_desc',get_the_ID()); ?></p>
                                <?php endif; ?>
								<?php if($enable_link <> '') : ?>
								
								<div><a href="<?php echo get_meta_option('slidershow_desc',get_the_ID()); ?>">read more</a></div>
								<?php endif ?>
                            </div>
                        </div>
						<?php }else if($enable_slidershow_video){
						echo $embed_code;
						
						} ?>
					
                    </div>
	  <?php
	  endwhile;
	  ?>
               </div>
              	<div class="slider-shadow">&nbsp;</div>
            </div>